<template>
	<div>
		<toubu></toubu>
		<div class="banner">
			<div class="inp-warr">
				<form>
					<div class="inputwarr">
						<input class="input1" type="text" placeholder="　请输入手机号/邮箱" />
						<div class="bian"></div>
					</div>
					<div class="inputwarr2">
					<input class="input2" type="text" placeholder="　请输入密码/验证码" />
					<div class="bian"></div>
					</div>
					<button class="anniu">
						登录
					</button>
					<p class="opp"></p>
				</form>
			</div>
		</div>
	</div>
</template>

<script>
	import Toubu from './toubu.vue';
	import $ from 'jquery';
	export default{
		data:function(){
			return {
				
			}
		},
		components: {
			Toubu
		},
		mounted:function(){

			$(".anniu").on('click',function(){
				if ($(".input1").val() == 0 || $(".input2").val() == 0) {
					$(".opp").text('输入账号或密码不合法')
				}else{
					location.href ='http://localhost:8080/?#/home';
				}
			})
			
			
		}
	}
</script>

<style>
</style>


